<?php
// Test update for SVN nightlys, remove this line asap.
if(!file_exists("includes/config.php")) {
        // Probably not the most elegant way of doing this, but it works ;)
        die("Read the documentation first, silly! ;)");
} else {
        include("includes/config.php");
}
$default = $config['default'];
switch (user_input('act')) {
        case "":
                include("includes/pages/{$default}.php");
                break;
        case "list":
                include("includes/pages/list.php");
                break;
        case "thumbs":
                include("includes/pages/thumbs.php");
                break;
        case "display":
                include("includes/pages/view.php");
        break;
        default:
                echo "Unknown switch. <a href=\"index.php\">Go home, buddy.</a>";
}
?>
